package com.ruoyi.web.wapper;

import cn.hutool.core.util.ObjectUtil;
import com.ruoyi.common.wapper.BaseControllerWrapper;

import java.util.List;
import java.util.Map;

public class SourceRecordInfoWapper extends BaseControllerWrapper {

    public SourceRecordInfoWapper(Map<String, Object> single) {
        super(single);
    }

    public SourceRecordInfoWapper(List<Map<String, Object>> multi) {
        super(multi);
    }

    @Override
    public void wrapTheMap(Map<String, Object> map) {

        try {
            Long id = (Long) map.get("id");
            if (ObjectUtil.isNotEmpty(id)){
                map.put("id", String.valueOf(id));
            }
        }catch (Exception ex){
            ex.printStackTrace();
        }
    }
}
